package com.org.model;

import java.sql.Timestamp;

/**
 * Ad entity. @author MyEclipse Persistence Tools
 */

public class Ad implements java.io.Serializable {

	// Fields

	private Long id;
	private AdPosition adPosition;
	private Timestamp createDate;
	private Timestamp modifyDate;
	private Integer orders;
	private Timestamp beginDate;
	private String content;
	private Timestamp endDate;
	private String path;
	private String title;
	private Integer type;
	private String url;

	// Constructors

	/** default constructor */
	public Ad() {
	}

	/** minimal constructor */
	public Ad(AdPosition adPosition, Timestamp createDate,
			Timestamp modifyDate, String title, Integer type) {
		this.adPosition = adPosition;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.title = title;
		this.type = type;
	}

	/** full constructor */
	public Ad(AdPosition adPosition, Timestamp createDate,
			Timestamp modifyDate, Integer orders, Timestamp beginDate,
			String content, Timestamp endDate, String path, String title,
			Integer type, String url) {
		this.adPosition = adPosition;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.orders = orders;
		this.beginDate = beginDate;
		this.content = content;
		this.endDate = endDate;
		this.path = path;
		this.title = title;
		this.type = type;
		this.url = url;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public AdPosition getAdPosition() {
		return this.adPosition;
	}

	public void setAdPosition(AdPosition adPosition) {
		this.adPosition = adPosition;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Timestamp getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

	public Integer getOrders() {
		return this.orders;
	}

	public void setOrders(Integer orders) {
		this.orders = orders;
	}

	public Timestamp getBeginDate() {
		return this.beginDate;
	}

	public void setBeginDate(Timestamp beginDate) {
		this.beginDate = beginDate;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Timestamp getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Timestamp endDate) {
		this.endDate = endDate;
	}

	public String getPath() {
		return this.path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}